home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / ARSRC21.ZIP / AR256DEF.H < prev    next >
C/C++ Source or Header  |  1995-06-01  |  2KB  |  67 lines

  1. class mouse
  2.         {
  3.  
  4.     public:
  5.         int x,y;
  6.         enum tf mouseon ;
  7.         enum tf wherelastclick(void);
  8.         enum tf right(void);
  9.         enum tf wheremouse(void);
  10.         enum tf nearby(int,int,int);
  11.         togmouse();
  12.         onmouse();
  13.         offmouse();
  14.         setbounds(int,int);
  15.         unsetbounds();
  16.         mouse();
  17.         ~mouse();
  18.         bitmapon(int,int);
  19.         bitmapoff();
  20.         initbitmap(int);//puts an image in *background--graphics must be on
  21.                                     // if its argument is true, noputat is set true.
  22.         putat(int,int);    //puts cursor. duh.  turn it off first.
  23.     private:
  24.         char noputat; //if true, putat does nowt.
  25.         dobounds();
  26.         signed int l,r,u,d;
  27.         char bitmap_flag;
  28.         unsigned char *bitmap_0, *current_map, *bitmap_1, *bitmap_2, *bitmap_3;
  29.         void *background;
  30.         int oldmx,oldmy,colour;
  31.         void drawmouse(int,int,unsigned char *);
  32.         int flip;
  33.         };
  34.  
  35. class screenmsgs{
  36.  
  37.                 public:
  38.                 screenmsgs();
  39.                 ~screenmsgs();
  40.                 void plecho(unsigned char);             //name
  41.                 void mecho(unsigned char,unsigned char);//current mon
  42.                 void fecho(monster,monster,char);       //fight
  43.                 void shecho(monster,monster,char,char); //shot
  44.                 void modecho(int);                      //mode
  45.                 void recho(char,char);                  //recce
  46.                 void trecho(monster,char);                            //felling trees
  47.  
  48.                 void boxes(void);
  49.         void logo(void);
  50.                 void spells(monster);
  51.                 void decho(char);                        //death of player
  52.                 void usespace(void);                   //popups.
  53.                 void usemouse(void);
  54.                 void usekeys(void);
  55.                 void help(void);
  56.                 void spellhelp(int);
  57.                 void graph(int [4][50],char *,char *);
  58.                 void bargraph(int [4],char *,char *);
  59.             private:
  60.                 char *logsp,*loga,*logb;
  61.                 void deathwindow(int,int,int,int,int);  //draws a box with a skull on for decho and graph
  62.                 char * spellname(int,char *);                  //returns pointer to name of spell
  63.  
  64.  
  65. };
  66.  
  67.